<template>
    <div>
        <div class="crumbs">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item>
                    <i class="el-icon-lx-calendar"></i> 教练管理
                </el-breadcrumb-item>
                <el-breadcrumb-item>添加教练</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="container">
            <div class="form-box">
                <el-form ref="form" :model="form" label-width="80px">
                    <el-form-item label="教练姓名">
                        <el-input v-model="form.name" style="width:40% "></el-input>
                    </el-form-item>
                    <el-form-item label="教练密码">
                        <el-input v-model="form.name" style="width:40% "></el-input>
                    </el-form-item>
                    <el-form-item label="教练性别">
                        <el-select v-model="form.region" placeholder="请选择" style="width: 40%">
                            <el-option key="bbk" label="男" value="bbk"></el-option>
                            <el-option key="xtc" label="女" value="xtc"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="联系电话" >
                        <el-input v-model="form.name" style="width:40% "></el-input>
                    </el-form-item>
                    <el-form-item label="电子邮箱">
                        <el-input v-model="form.name" style="width:40% "></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="onSubmit">确定</el-button>
                        <el-button>取消</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'baseform',
        data() {
            return {
                options: [
                    {
                        value: 'guangdong',
                        label: '广东省',
                        children: [
                            {
                                value: 'guangzhou',
                                label: '广州市',
                                children: [
                                    {
                                        value: 'tianhe',
                                        label: '天河区'
                                    },
                                    {
                                        value: 'haizhu',
                                        label: '海珠区'
                                    }
                                ]
                            },
                            {
                                value: 'dongguan',
                                label: '东莞市',
                                children: [
                                    {
                                        value: 'changan',
                                        label: '长安镇'
                                    },
                                    {
                                        value: 'humen',
                                        label: '虎门镇'
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        value: 'hunan',
                        label: '湖南省',
                        children: [
                            {
                                value: 'changsha',
                                label: '长沙市',
                                children: [
                                    {
                                        value: 'yuelu',
                                        label: '岳麓区'
                                    }
                                ]
                            }
                        ]
                    }
                ],
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: true,
                    type: ['步步高'],
                    resource: '小天才',
                    desc: '',
                    options: []
                }
            };
        },
        methods: {
            onSubmit() {
                this.$message.success('提交成功！');
            }
        }
    };
</script>
